// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import store from './store/index'
//引入
import * as echarts from 'echarts'
//将echarts添加到vue的原型上
Vue.prototype.$echarts = echarts

//引入element-ui的全部组件
import ElementUI from 'element-ui'
//引入element-ui的css
import 'element-ui/lib/theme-chalk/index.css'
Vue.prototype.$axios = axios;
axios.defaults.withCredentials = true// Cookie跨域

//使用elementUI
Vue.use(ElementUI)
Vue.config.productionTip = false
/* eslint-disable no-new */
// 定义了一个app的vue对象
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
